package com.ubs.persistence;

public final class PersistenceUtils {

	public static String boolToString(Boolean bool) {
		return bool ? "Y" : "N";
	}

	public static boolean stringToBool(String enabled) {
		if ("Y".equals(enabled)) {
			return true;
		} else if ("N".equals(enabled)) {
			return false;
		}
		throw new IllegalArgumentException();
	}

}
